package com.etop.weibo.dto;

import java.util.Date;

/**
 *
 * @author jansing
 * lz_jansing@163.com
 */
public class UserSayDTO {
    //User
    private String nickname;
    //Say
    private int sayId;
    private int userId;
    private String what;
    private int praise;
    private boolean isPraised;
    private Date createTime;

    public UserSayDTO(String nickname, int sayId, int userId, String what, int praise, Date createTime) {
        this.nickname = nickname;
        this.sayId = sayId;
        this.userId = userId;
        this.what = what;
        this.praise = praise;
        this.createTime = createTime;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getSayId() {
        return sayId;
    }

    public void setSayId(int sayId) {
        this.sayId = sayId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getWhat() {
        return what;
    }

    public void setWhat(String what) {
        this.what = what;
    }

    public int getPraise() {
        return praise;
    }

    public void setPraise(int praise) {
        this.praise = praise;
    }

    public boolean isIsPraised() {
        return isPraised;
    }

    public void setIsPraised(boolean isPraised) {
        this.isPraised = isPraised;
    }
    
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    @Override
    public String toString(){
        return this.nickname 
                + " + " + this.sayId 
                + " + " + this.userId 
                + " + " + this.what 
                + " + " + this.praise 
                + " + " + this.createTime;
    }
}
